Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add finalizer to BZStream and make TranscodingStreams.finalize a noop #43

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

nhz2
Copy link
Member

@nhz2 nhz2 commented Dec 17, 2024

Arguably simpler alternative to #42

According to the bzip2 manual, "The low-level part of the library has no global variables and is therefore thread-safe."
So there shouldn't be a need for anything fancy here.

Also fixes #27

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.71%. Comparing base (95a9fc8) to head (03e880a).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #43      +/-   ##
==========================================
+ Coverage   82.63%   85.71%   +3.07%     
==========================================
  Files           4        4              
  Lines         167      161       -6     
==========================================
  Hits          138      138              
+ Misses         29       23       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nhz2 nhz2 marked this pull request as ready for review December 17, 2024 23:20
@nhz2 nhz2 merged commit 2448703 into master Dec 18, 2024
14 checks passed
@nhz2 nhz2 deleted the nz/finalizers2 branch December 18, 2024 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory leak if decompressed stream is not explicitly closed
1 participant